export const CUSTOMER_CONFIG = [{
		type: 'input',
		label: '客户手机号',
		key: 'phoneNumber',
		rules: [{
				required: true,
				errorMessage: '请输入客户手机号'
			},
			{
				format: /^1[3456789]\d{9}$/,
				errorMessage: '手机号格式不正确',
			}
		]
	},
	{
		type: 'input',
		label: '客户姓名',
		key: 'userName'
	},
	{
		type: 'input',
		label: '余额',
		key: 'valueMoney',
		isDisabled: true
	},
	{
		type: 'select',
		label: '会员权益',
		key: 'memberFlag',
		isDisabled: true,
		options: [{
				text: '是',
				value: '1'
			},
			{
				text: '否',
				value: '2'
			}
		]
	}
]

export const PROJECT_CONFIG = [{
		type: 'select',
		label: '项目分类',
		key: 'typeId',
		rules: [{
			required: true,
			errorMessage: '请选择项目分类'
		}]
	},
	{
		type: 'select',
		label: '服务项目',
		key: 'projectId',
		rules: [{
			required: true,
			errorMessage: '请选择服务项目'
		}]
	},
	{
		type: 'select',
		label: '附加商品',
		key: 'goods'
	},
	{
		type: 'dateTime',
		label: '选择时间',
		key: 'chooseTime',
		isDisabled: true,
		minDate: new Date().toString(),
		rules: [{
			required: true,
			errorMessage: '请选择时间'
		}]
	},
	{
		type: 'select',
		label: '服务技师',
		key: 'technicianId',
		rules: [{
			required: true,
			errorMessage: '请选择服务技师'
		}]
	}
]

export const ROOM_CONFIG = [{
		type: 'select',
		label: '需要包间',
		key: 'needRoom',
		initVal: '2',
		options: [{
				text: '是',
				value: '1'
			},
			{
				text: '否',
				value: '2'
			}
		]
	},
	{
		type: 'select',
		label: '选择包间',
		key: 'compartmentId',
		labelKey: 'compartmentName',
		hiddenItem: true
	}
]